@theme-color: #007bff; //主题色
@theme-hover-color: rgba(67, 157, 255, 0.05); // 主题hover颜色

body {
  background-color: rgb(247, 247, 247);
}

a,
button {
  cursor: pointer;
}

a {
  &:hover {
    color: @theme-color;
  }
}

// 公共类
// 清除浮动
.clear {
  &::after {
    display: block;
    content: "";
    width: 0;
    height: 0;
    line-height: 0;
    font-size: 0;
    clear: both;
  }
}

// 容器类
.container {
  padding: 30px;
}

// 激活
.active {
  color: @theme-color;
}

// 左右浮动
.fl {
  float: left;
}

.fr {
  float: right;
}

// 显示隐藏
.hide {
  visibility: hidden;
  opacity: 0;
}

.show {
  visibility: visible;
  opacity: 1;
}

// 基础按钮
.btn {
  padding: 0 15px;
  height: 30px;
  border-radius: 5px;
  text-align: center;
  line-height: 30px;
  font-size: 14px;
  color: #fff;
  outline: 0;
  border: 0;
  font-weight: 800;

  &:hover {
    color: #fff;
  }
}

// 按钮-正常
.btn-normal {
  background-color: @theme-color;
  box-shadow: 0 0 5px @theme-color;
}

.btn-success {
  background-color: #44b549;
  box-shadow: 0 0 5px #44b549;
}

.btn-danger {
  background-color: #ff4646;
  color: #ffffff;
  box-shadow: 0 0 5px #ff4646;
}

// 按钮-取消
.btn-cancel {
  background-color: #aaa;
}

// 按钮-带有图标
.btn-icon {
  background: transparent;
  border: 0;
  outline: 0;
  color: #707070;
  padding: 0;
  cursor: pointer;

  &:hover {
    color: @theme-color;
  }
}

// 未发布
.status-private {
  color: #feac40;
}

// 发布中
.status-public {
  color: #46dc28ce;
}

// 已结束
.status-finished {
  color: #ff0000;
}

// 头部
#header {
  position: fixed;
  left: 0;
  top: 0;
  width: calc(100% - 20px);
  height: 56px;
  padding: 0 60px;
  background-color: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, .1);
  z-index: 99999999999;
  transition: all .15s linear;
  border-radius: 10px;
  margin: 10px;

  // logo区域
  h1 {
    margin-top: 13px;
    float: left;
    font-size: 15px;

    a {
      display: inline-block;
      vertical-align: middle;
      color: #000;
    }
  }

  // 导航列表
  ul {
    float: left;
    height: 100%;
    margin-left: 40px;

    li {
      height: 100%;
      line-height: 55px;

      a {
        display: block;
        width: 100%;
        height: 100%;
        color: #000;

        &:hover {
          color: @theme-color;
        }
      }
    }

    li.active {
      border-bottom: 2px solid @theme-color;

      a {
        &:visited {
          color: @theme-color;
        }
      }
    }
  }
}

//logo
#logo {
  width: 30px;
  height: 30px;
  background-image: url("../favicon.ico");
  background-size: cover;
}

//头像
.avatar {
  padding: 4px 10px 4px 4px;
  height: 36px;
  border-radius: 18px;
  float: right;
  margin-top: 10px;
  background-color: #f8f8f8;

  img {
    width: 28px;
    vertical-align: middle;
    border-radius: 50%;
  }

  span {
    display: inline-block;
    vertical-align: middle;
    font-size: 13px;
  }
}

#main {
  padding: 56px 30px 0;
}

.message-box {
  position: fixed;
  top: 55%;
  left: 50%;
  padding: 25px 30px;
  background-color: rgba(0, 0, 0, .4);
  color: #fff;
  border-radius: 5px;
  transform: translate(-50%, -50%);
  visibility: hidden;
  opacity: 0;
  z-index: 99999999;
  font-size: 14px;
  font-weight: 100;
  letter-spacing: .8px;
  max-width: 350px;
  word-break: break-word;
}

#layer-mask {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, .5);
  z-index: 9999999999999999;
  visibility: hidden;
  opacity: 0;
}

.confirm-box {
  position: fixed;
  top: 55%;
  left: 50%;
  padding: 20px 40px;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, .1);
  color: #000;
  border-radius: 10px;
  transform: translate(-50%, -50%);
  visibility: hidden;
  opacity: 0;
  z-index: 99999999999999999;

  .confirm-content {
    padding: 25px 0;
    text-align: center;
    color: #333;
    font-weight: 100;
    max-width: 350px;
    word-break: break-word;
    line-height: 1.5;
  }

  .confirm-btn-box {
    min-width: 200px;
    text-align: center;

    #btn-confirm {
      margin-right: 10px;
    }
  }

  .btn-close {
    position: absolute;
    top: 15px;
    right: 20px;

    .iconfont {
      color: @theme-color;
      font-size: 14px;
      font-weight: 800;
    }
  }
}

input {
  outline: 0;
}

#bg-top-left {
  position: absolute;
  top: 0;
  left: 0;
  background-image: url("../img/bg (1).png");
  width: 480px;
  height: 680px;
  background-size: contain;
  z-index: -1;
}

#bg-top-right {
  position: absolute;
  top: 0;
  right: 0;
  background-image: url("../img/bg (2).png");
  width: 480px;
  height: 680px;
  background-size: contain;
  z-index: -1;
}

#bg-bottom-left {
  position: absolute;
  bottom: 0;
  left: 0;
  background-image: url("../img/bg (3).png");
  width: 480px;
  height: 680px;
  background-size: contain;
  z-index: -1;
}

#bg-bottom-right {
  position: absolute;
  bottom: 0;
  right: 0;
  background-image: url("../img/bg (4).png");
  width: 480px;
  height: 680px;
  background-size: contain;
  z-index: -1;
}

body {
  position: relative;
  background-color: #ebf3fd;
  min-height: 888px;
}

.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.up,
.down,
.num {
  float: left;
  text-align: center;
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  background-color: #fff;
  border-radius: 5px;
  margin: 2px;
  transition: all .15s linear;

  &:hover {
    background: @theme-color;
    color: #fff;
  }
}

.on {
  background: @theme-color;
  color: #fff;
}